package com.company.management.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.company.management.modal.entity.DepartMent;
import com.company.management.modal.entity.Task;
import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Description:
 * @Author: zyj
 * @Date: 2022-09-6 9:23
 * @Version v1.0
 **/
@Repository
public interface DepartMentMapper extends BaseMapper<DepartMent> {
    @Select("select * from t_department where dept_id = #{deptId} ")
    DepartMent findDepartmentById(String deptId);

    @Select("select * from t_department")
    List<DepartMent> listAll();



}
